package com.huike.review.service;

import com.huike.review.domain.MybatisReview;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * mybatis复习接口层
 */
public interface ReviewService {
    //post 添加
    public int insertMybatisReview(MybatisReview mybatisReview);

    //get 添加
    public int saveData(String name, Integer age, String sex);

    //修改
    public int updateMybatisReview(MybatisReview mybatisReview);

    //删除
    public int deleteById(Long id);

    //根据id查询
    public MybatisReview selectMybatisReviewById(Long id);

    //分页查询
    public List<MybatisReview> selectMybatisReviewList(MybatisReview mybatisReview);
}
